html, body{
    height: 100%;
}
body{
    margin: 0;
    box-sizing: border-box;
}
/*头部样式*/
header{
    height: 45px;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #eee;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
header >.text{
    flex-grow: 1;
    text-align: center;
}
header >.back{
    margin-left: 8px;
    width: 20px;
    height: 20px;
    background: url("icons/arrow-left.png") no-repeat center center/contain;
}
header >.share{
    margin-right: 8px;
    width: 20px;
    height: 20px;
    background: url("icons/share.png") no-repeat center center/contain;
}
/*主体样式*/
.main {
    background-color: #eee;
    height: calc(100% - 105px);
    overflow-y: scroll;
    margin-top: 45px;
}

.slider > .img {
    width: 100%;
    height: 330px;
    background: url("banner/banner1.jpg") no-repeat center center/cover;
}

.slider {
    border: 1px solid #eee;
}

.summary {
    box-sizing: border-box;
    padding: 10px;
    background-color: #fff;
}

.summary i {
    font-style: normal;
}

.summary > div > span:first-child {
    font-size: 26px;
    color: #FFB34E;
}

.summary > div > span:nth-child(2) {
    font-size: 13px;
    text-decoration: line-through;
    color: #666;
}

.summary > div > span:last-child {
    font-size: 13px;
    background-color: #FFB34E;
    color: #fff;
    padding: 1px 6px;
}

.desc {
    background-color: #fff;
    margin-top: 10px;
}

.desc h1, .detail h1 {
    margin: 0;
    font-size: 15px;
    font-weight: normal;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.desc p {
    color: #666;
    padding: 8px 15px;
    margin: 0;
}

.desc i {
    font-style: normal;
    color: #000;
}

.detail {
    background-color: #fff;
    margin-top: 10px;
}
/*底部样式*/
footer{
    height: 60px;
    display: flex;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    font-size: 14px;
}
footer >div> b{
    display: block;
    font-weight: normal;
    text-align: center;
    margin-top: 3px;

}
footer .buy_now {
    width: 35%;
    background-color: #ffb3ee;
    color: #fff;
    line-height: 60px;
    text-align: center;
    font-size: 15px;
}
footer .add2cart {
    width: 35%;
    background-color: #000;
    color: #fff;
    line-height: 60px;
    text-align: center;
    font-size: 15px;

}
footer > .index {
    width: 15%;
    box-sizing: border-box;
    padding-top: 8px;
}
footer > .cart {
    width: 15%;
    box-sizing: border-box;
    padding-top: 8px;
}
footer > .index > i{
    display: block;
    width: 30px;
    height: 30px;
    background: url("icons/home2.png") no-repeat center center/cover;
    margin: 0 auto;
}
footer > .cart > i{
    display: block;
    width: 30px;
    height: 30px;
    background: url("icons/shop-cart1.png") no-repeat center center/cover;
    margin: 0 auto;
}

/*轮播图样式*/
.slider > .swiper {
    width: 100%;
    height: 400px;
}

.slider .swiper-slide {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
